package com.tn.exam.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ExamPaperContent entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "exam_paper_content")
public class ExamPaperContent extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer contentId;
	private Integer contentPaperId;
	private Integer contentQuestionId;

	// Constructors

	/** default constructor */
	public ExamPaperContent() {
	}

	/** full constructor */
	public ExamPaperContent(Integer contentPaperId, Integer contentQuestionId) {
		this.contentPaperId = contentPaperId;
		this.contentQuestionId = contentQuestionId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "content_id", unique = true, nullable = false)
	public Integer getContentId() {
		return this.contentId;
	}

	public void setContentId(Integer contentId) {
		this.contentId = contentId;
	}

	@Column(name = "content_paper_id", nullable = false)
	public Integer getContentPaperId() {
		return this.contentPaperId;
	}

	public void setContentPaperId(Integer contentPaperId) {
		this.contentPaperId = contentPaperId;
	}

	@Column(name = "content_question_id", nullable = false)
	public Integer getContentQuestionId() {
		return this.contentQuestionId;
	}

	public void setContentQuestionId(Integer contentQuestionId) {
		this.contentQuestionId = contentQuestionId;
	}

}